package com.share.pattern.singleton;

/**
 * 多线程时的单例
 * 
 * @author Johnny Tam
 *
 */
public class Singleton3 {

	// 3) 静态内部类	
	private static class InnerSingleton {
		private static final Singleton3 INSTANCE = new Singleton3();
	}	

	private Singleton3() {
	}

	public static final Singleton3 getInstance() {

		return InnerSingleton.INSTANCE;
	}

}
